
/// code : 0
/// data : {"treatment":"","dosage":"P.O","addTime":"2020-09-01 14:43:03","addUser":"同步码表","productBrand":"","sickness":"","namePy":"zmsp【j】50wu*100p","productUnit":"片","medicineClass":0,"modifyUser":"","modifyTime":"2020-09-01 14:43:03","medicineForm":"抗感染用药","otcType":1,"productSpec":"","belongSection":"","medicineFormID":0,"formType":"万u","isDelete":0,"keyID":"20090114475617942041103001","approveNo":"","weight":"","productFactory":"浙江震元","people":"","medicineName":"制霉素片【基】50万u*100片","barCode":"","normalName":"制霉素片【基】50万u*100片","belongSickness":"","productPlace":"","otcClass":1}
/// message : "成功"

class MedicineInfoEntity {
  int _code;
  Data _data;
  String _message;

  int get code => _code;

  Data get data => _data;

  String get message => _message;

  MedicineInfoEntity({int code, Data data, String message}) {
    _code = code;
    _data = data;
    _message = message;
  }

  MedicineInfoEntity.fromJson(dynamic json) {
    _code = json["code"];
    _data = json["data"] != null ? Data.fromJson(json["data"]) : null;
    _message = json["message"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["code"] = _code;
    if (_data != null) {
      map["data"] = _data.toJson();
    }
    map["message"] = _message;
    return map;
  }
}

/// treatment : ""
/// dosage : "P.O"
/// addTime : "2020-09-01 14:43:03"
/// addUser : "同步码表"
/// productBrand : ""
/// sickness : ""
/// namePy : "zmsp【j】50wu*100p"
/// productUnit : "片"
/// medicineClass : 0
/// modifyUser : ""
/// modifyTime : "2020-09-01 14:43:03"
/// medicineForm : "抗感染用药"
/// otcType : 1
/// productSpec : ""
/// belongSection : ""
/// medicineFormID : 0
/// formType : "万u"
/// isDelete : 0
/// keyID : "20090114475617942041103001"
/// approveNo : ""
/// weight : ""
/// productFactory : "浙江震元"
/// people : ""
/// medicineName : "制霉素片【基】50万u*100片"
/// barCode : ""
/// normalName : "制霉素片【基】50万u*100片"
/// belongSickness : ""
/// productPlace : ""
/// otcClass : 1

class Data {
  String _treatment;
  String _dosage;
  String _addTime;
  String _addUser;
  String _productBrand;
  String _sickness;
  String _namePy;
  String _productUnit;
  int _medicineClass;
  String _modifyUser;
  String _modifyTime;
  String _medicineForm;
  int _otcType;
  String _productSpec;
  String _belongSection;
  int _medicineFormID;
  String _formType;
  int _isDelete;
  String _keyID;
  String _approveNo;
  String _weight;
  String _productFactory;
  String _people;
  String _medicineName;
  String _barCode;
  String _normalName;
  String _belongSickness;
  String _productPlace;
  int _otcClass;

  String get treatment => _treatment;

  String get dosage => _dosage;

  String get addTime => _addTime;

  String get addUser => _addUser;

  String get productBrand => _productBrand;

  String get sickness => _sickness;

  String get namePy => _namePy;

  String get productUnit => _productUnit;

  int get medicineClass => _medicineClass;

  String get modifyUser => _modifyUser;

  String get modifyTime => _modifyTime;

  String get medicineForm => _medicineForm;

  int get otcType => _otcType;

  String get productSpec => _productSpec;

  String get belongSection => _belongSection;

  int get medicineFormID => _medicineFormID;

  String get formType => _formType;

  int get isDelete => _isDelete;

  String get keyID => _keyID;

  String get approveNo => _approveNo;

  String get weight => _weight;

  String get productFactory => _productFactory;

  String get people => _people;

  String get medicineName => _medicineName;

  String get barCode => _barCode;

  String get normalName => _normalName;

  String get belongSickness => _belongSickness;

  String get productPlace => _productPlace;

  int get otcClass => _otcClass;

  Data(
      {String treatment,
      String dosage,
      String addTime,
      String addUser,
      String productBrand,
      String sickness,
      String namePy,
      String productUnit,
      int medicineClass,
      String modifyUser,
      String modifyTime,
      String medicineForm,
      int otcType,
      String productSpec,
      String belongSection,
      int medicineFormID,
      String formType,
      int isDelete,
      String keyID,
      String approveNo,
      String weight,
      String productFactory,
      String people,
      String medicineName,
      String barCode,
      String normalName,
      String belongSickness,
      String productPlace,
      int otcClass}) {
    _treatment = treatment;
    _dosage = dosage;
    _addTime = addTime;
    _addUser = addUser;
    _productBrand = productBrand;
    _sickness = sickness;
    _namePy = namePy;
    _productUnit = productUnit;
    _medicineClass = medicineClass;
    _modifyUser = modifyUser;
    _modifyTime = modifyTime;
    _medicineForm = medicineForm;
    _otcType = otcType;
    _productSpec = productSpec;
    _belongSection = belongSection;
    _medicineFormID = medicineFormID;
    _formType = formType;
    _isDelete = isDelete;
    _keyID = keyID;
    _approveNo = approveNo;
    _weight = weight;
    _productFactory = productFactory;
    _people = people;
    _medicineName = medicineName;
    _barCode = barCode;
    _normalName = normalName;
    _belongSickness = belongSickness;
    _productPlace = productPlace;
    _otcClass = otcClass;
  }

  Data.fromJson(dynamic json) {
    _treatment = json["treatment"];
    _dosage = json["dosage"];
    _addTime = json["addTime"];
    _addUser = json["addUser"];
    _productBrand = json["productBrand"];
    _sickness = json["sickness"];
    _namePy = json["namePy"];
    _productUnit = json["productUnit"];
    _medicineClass = json["medicineClass"];
    _modifyUser = json["modifyUser"];
    _modifyTime = json["modifyTime"];
    _medicineForm = json["medicineForm"];
    _otcType = json["otcType"];
    _productSpec = json["productSpec"];
    _belongSection = json["belongSection"];
    _medicineFormID = json["medicineFormID"];
    _formType = json["formType"];
    _isDelete = json["isDelete"];
    _keyID = json["keyID"];
    _approveNo = json["approveNo"];
    _weight = json["weight"];
    _productFactory = json["productFactory"];
    _people = json["people"];
    _medicineName = json["medicineName"];
    _barCode = json["barCode"];
    _normalName = json["normalName"];
    _belongSickness = json["belongSickness"];
    _productPlace = json["productPlace"];
    _otcClass = json["otcClass"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["treatment"] = _treatment;
    map["dosage"] = _dosage;
    map["addTime"] = _addTime;
    map["addUser"] = _addUser;
    map["productBrand"] = _productBrand;
    map["sickness"] = _sickness;
    map["namePy"] = _namePy;
    map["productUnit"] = _productUnit;
    map["medicineClass"] = _medicineClass;
    map["modifyUser"] = _modifyUser;
    map["modifyTime"] = _modifyTime;
    map["medicineForm"] = _medicineForm;
    map["otcType"] = _otcType;
    map["productSpec"] = _productSpec;
    map["belongSection"] = _belongSection;
    map["medicineFormID"] = _medicineFormID;
    map["formType"] = _formType;
    map["isDelete"] = _isDelete;
    map["keyID"] = _keyID;
    map["approveNo"] = _approveNo;
    map["weight"] = _weight;
    map["productFactory"] = _productFactory;
    map["people"] = _people;
    map["medicineName"] = _medicineName;
    map["barCode"] = _barCode;
    map["normalName"] = _normalName;
    map["belongSickness"] = _belongSickness;
    map["productPlace"] = _productPlace;
    map["otcClass"] = _otcClass;
    return map;
  }

}
